#ifndef YZJWRITER_H
#define YZJWRITER_H

#include <QXmlStreamWriter>
#include <QMultiMap>
#include <QPair>

class YzjWriter
{
public:
    YzjWriter();
    bool WriteYzj(QIODevice *device);

private:
    QXmlStreamWriter xml;
    typedef QPair<QString,QString> QStringPairMap;
    QStringPairMap keyValue;
    QMultiMap<QString,QStringPairMap> item;

    void WriteRecord(QMultiMap<QString,QStringPairMap> item);//y
    void WriteCategory(QString cate, QMultiMap<QString,QStringPairMap> item);
    void WriteItem(QStringPairMap itemPair);

};


#endif // YZJWRITER_H
